Mac OS X

Note: You must install OpenCPN into your Applications folder where it belongs. The installers of the plugins expect it to be there.

OpenCPN is distributed as a Mac ".pkg" file

  1. Download the .pkg file.
  2. Double-click it or select it and use the keyboard shortcut CMD + O.
  3. Every app has its own conditions and special information for initiating an install, so be sure to read things thoroughly as you proceed through the installation.
  4. After clicking Continue, you may be asked which disc you wish to install the app or service on. Beware that installing it on an external hard drive has not fared well for many. There’s a big disconnect between the drives at times and if you forget to plug in the external one, things may become corrupted. If it’s a separate partition, things should work okay, but there’s still a risk of problems.

You can have a look at this tutorial How to Install and Remove Apps for general instructions on installing Mac OS X applications.

Also for MacOS Mojave see CF thread http://www.cruisersforum.com/forums/f134/open-cpn-kind-of-a-mess-on-mojave-228973.html

For MacOS Catalina there are some issues, but look at this CF post http://www.cruisersforum.com/forums/f134/oesenc-does-not-download-to-plugins-on-opencpn-228875.html#post3054084

Plugin Installation

  1. Download the installation package (*.pkg)
  2. Make sure that the OpenCPN application is not renamed. The plugin will only install on OpenCPN.app
  3. Double-click the downloaded file to start the installation. In case your security settings are tight, which is the default on modern macOS versions, Control-Click on the file, select Open from the context menu and confirm your intention to open the installer.
  4. Follow the instructions provided by the installer
  5. In case your security settings are tight and the OS refuses to start the installer, control-click it, select Open from the context menu and confirm your intention to install the plugin in the subsequent dialog.

Use of your iPad with RealVNC and OpenCPN

Script to build OpenCPN

#! /usr/bin/env bash
#
# Build the OSX artifacts
#
set -xe

${MACOSX_DEPLOYMENT_TARGET :- 10.13} |

# Return latest installed brew version of given package

$2 $1

' {print $2} ' ; }|

# Check if the cache is with us. If not, re-install brew.
{
brew update-reset
# As indicated by warning message in CircleCI build log:
# git -C “/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core” \
# fetch –unshallow
# git -C “/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask” \
# fetch –unshallow
}
# exit 0
# build libarchive, for legacy compatibility.
curl -k -o libarchive-3.3.3.tar.gz \
tar zxf libarchive-3.3.3.tar.gz
cd libarchive-3.3.3
./configure –without-lzo2 –without-nettle –without-xml2 –without-openssl –with-expat
# installs to /usr/local
sudo rm -f /usr/local/include/archive.h
sudo rm -f /usr/local/include/archive_entry.h
sudo make install
cd ..
brew install cairo
brew install freetype
brew install lame
brew install lz4
brew install mpg123
brew install xz
brew install zstd

pkg in openssl python3 cmake ; do |

$pkg

$pkg

$pkg

: |

$pkg

: |

done

; then |

$( pkg_version packages

' –cask ' ) |

sudo installer \

$version /packages/Packages.pkg \|

-target /
else
brew install –cask packages
fi
curl -k -o /tmp/wx321_opencpn50_macos1010.tar.xz \
tar -C /tmp -xJf /tmp/wx321_opencpn50_macos1010.tar.xz

“ /usr/local/opt/gettext/bin: $PATH ” |

' export PATH=“/usr/local/opt/gettext/bin:$PATH” '

~ /.bash_profile|

# Build, install and make package
mkdir build
cd build

“ $TRAVIS_TAG ” && CI_BUILD=OFF

CI_BUILD=ON

$CI_BUILD |

-DOCPN_VERBOSE=ON
-DOCPN_USE_LIBCPP=ON
-DOCPN_USE_SYSTEM_LIBARCHIVE=OFF
-DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx321_opencpn50_macos1010/lib/wx/config/osx_cocoa-unicode-3.2

“ –prefix=/tmp/wx321_opencpn50_macos1010 ” |

-DCMAKE_INSTALL_PREFIX=/tmp/opencpn -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10
-DOCPN_BUILD_TEST=OFF
..

$( sysctl -n hw.physicalcpu ) |

mkdir -p /tmp/opencpn/bin/OpenCPN.app/Contents/MacOS
mkdir -p /tmp/opencpn/bin/OpenCPN.app/Contents/SharedSupport/plugins
make install

# Dunno why the second is needed but it is, otherwise |

# plugin data is not included in the bundle
make create-pkg
make create-dmg
# Install the stuff needed by upload.

pip3 install –user -q cloudsmith-cli